﻿using FrameworkCore.Migrations.Data;
using System.ComponentModel.DataAnnotations.Schema;

namespace Domain.Entities;

#nullable disable

/// <summary>
/// 组（比如：用户组，角色组，权限组，组织机构等）
/// </summary>
[Table("Groups")]
public partial class Group : BaseAuditableEntity, ISoftDeletedEntity
{
    /// <summary>
    /// 组名
    /// </summary>
    public string? Groupname { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    public string? Code { get; set; }

    /// <summary>
    /// 是否反面（多用于存在互斥逻辑的情况下）
    /// </summary>
    public bool? IsVillain { get; set; }

    /// <summary>
    /// 父级节点
    /// </summary>
    public long? ParentId { get; set; }

    /// <summary>
    /// 软删除
    /// </summary>
    public bool? IsDeleted { get; set; }
}
